home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11133 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: fohnix.metronet.com!not-for-mail
  2. From: milam@fohnix.metronet.com (Stan Milam)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help with C Date/Time Calc
  5. Date: 21 Mar 1996 20:55:58 -0600
  6. Organization: Texas Metronet, Inc  (login info (214/488-2590 - 817/571-0400))
  7. Message-ID: <4it4ru$h9c@fohnix.metronet.com>
  8. References: <4irm8d$bev@dfw-ixnews5.ix.netcom.com>
  9. NNTP-Posting-Host: fohnix.metronet.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Keith Zawila (kzawila@ix.netcom.com) wrote:
  13. : Hi............
  14. :  I am a relatively novice C programmer (took an Intro class) and I
  15. : could use some help with a calculation I need to perform:
  16.  
  17. :  I have the total number of seconds that have elapsed since 1/1/70,
  18. : and need to calculate the current date/time.  Is there a function
  19. : within C that will help with this, or something else that will keep me
  20. : from attempting to reinvent the wheel??  Whatever direction anyone
  21. : could provide would be greatly appreciated!
  22.  
  23. : kzawila@ix.netcom.com
  24.  
  25. Check your manual for time(), localtime(), strftime(), ctime(), gmtime(), 
  26. and mktime().  I am sure there are others, but I cannot remember all of 
  27. them.  ANSI C has a very complete date/time suite of functions.
  28.  
  29. Rgrds,
  30. Stan Milam.
  31.